<!doctype html>
<html>
	<head>
		<meta charset="utf-8">
		<title>User PreAdd</title>
	    <%include("../inc/editCss.html"){};%>
        
	</head>
	<body class="no-skin">
		<div class="container-fluid">
			<div class="row">
			  <div class="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="ace-icon fa fa-home home-icon"></i><a href="index.jspx" target="_top">首页</a></li>
					<li><a href="list.jspx">用户</a></li>
					<li class="active">新增</li>
				</ul>
				  <!-- /.breadcrumb -->
			  </div>
			  <!-- /.breadcrumbs -->
			</div>
			<!-- /.row -->
			<div class="row">
				<div class="page-content">
					<div class="page-header">
						<h1>管理员新增</h1>
					</div>
					<div class="row">
						<div class="col-xd-12">
						    <form action="add.jspx" method="post" class="form-horizontal" role="form" id="form-data">
						    	<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 用户名 </label>
									<div class="col-sm-8">
									<input type="text" id="username" name="username" placeholder="用户名" class="form-control">
									</div>
								</div>
								
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 邮箱 </label>
									<div class="col-sm-3">
									<input type="text" id="email" name="email" placeholder="邮箱" class="form-control">
									</div>
									
									<label class="col-sm-2 control-label no-padding-right"> 电话 </label>
									<div class="col-sm-3">
									    <input type="text" id="mobilePhone" name="mobilePhone" placeholder="电话" class="form-control">
									</div>
								</div>
								
						    	<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 密码  </label>
									<div class="col-sm-3">
										<input type="password" id="password" name="password" placeholder="密码" class="form-control" />
									</div>
									<label class="col-sm-2 control-label no-padding-right"> 确认密码  </label>
									<div class="col-sm-3">
										<input type="password" id="repassword" name="repassword" placeholder="确认密码" class="form-control" />
									</div>
								</div>
								<div class="space-4"></div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 角色(<span class="red">*</span>)  </label>
									<div class="col-sm-10">
										<%for(role in roles!){%>
										<label><input id="role_${role.id!0}" name="roleIds" type="checkbox" value="${role.id!0}"> ${role.name!}</label>
										<%}%>
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right"> 状态 </label>
									<div class="col-sm-9">
										<label><input type="checkbox" id="blocked" name="blocked" value="1"> 帐号锁定</label>	
										<label><input type="checkbox" id="deleted" name="deleted" value="1"> 帐号删除</label>	
										<label><input type="checkbox" id="admin" name="admin" value="1"> 管理员身份</label>							
									</div>
								</div>
								<div class="form-group">
									<label class="col-sm-2 control-label no-padding-right">添加时间</label>
									<div class="col-sm-3">
										<input type="text" name="addtime" value="${date(),'yyyy-MM-dd HH:mm:ss'}">
									</div>
								</div>
								<div class="clearfix form-actions">
									<div class="col-sm-offset-2 col-sm-4">
										<button type="reset" class="btn">
											<i class="ace-icon fa fa-undo bigger-110"></i>
											重置
										</button>
										&nbsp;&nbsp;
										<button type="submit" class="btn btn-info">
											<i class="ace-icon fa fa-check bigger-110"></i>
											提交
										</button>
									</div>
								</div>
						    </form>
					    </div>
					</div>
					<!-- /.row -->
				</div>
				<!-- /.page-content -->
			</div>
		</div>
		<%include("../inc/editJs.html"){};%>
		<script>
			$(document).ready(function(){
				root.manage.user.edit.init();
			});
		</script>
	</body>
</html>